﻿<Window x:Class="GetSMART.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Get S.M.A.R.T." Height="400" Width="700" WindowStartupLocation="CenterScreen"
        Background="{x:Static SystemColors.ControlBrush}" Loaded="Window_Loaded" Closed="Window_Closed">
    <DockPanel Margin="6">
        <DockPanel DockPanel.Dock="Bottom" Margin="0,6,0,0">
            <Button DockPanel.Dock="Left" Width="80" Height="24" Margin="0,0,6,0" IsEnabled="{Binding ElementName=DrivesList, Path=HasItems}" Click="GetDataButton_Click">Get Data</Button>
            <Label Name="StatusLabel" VerticalContentAlignment="Center" HorizontalContentAlignment="Right"/>
        </DockPanel>
        <ListView Name="DrivesList" MouseDoubleClick="DrivesList_MouseDoubleClick">
            <ListView.View>
                <GridView>
                    <GridViewColumn Width="134" Header="Name" DisplayMemberBinding="{Binding Name}"/>
                    <GridViewColumn Width="70" Header="HasRights" DisplayMemberBinding="{Binding HasRights}"/>
                    <GridViewColumn Width="70" Header="BusType" DisplayMemberBinding="{Binding BusType}"/>
                    <GridViewColumn Width="70" Header="Index" DisplayMemberBinding="{Binding Index}"/>
                    <GridViewColumn Width="70" Header="Scsi Port" DisplayMemberBinding="{Binding ScsiAddress.PortNumber}"/>
                    <GridViewColumn Width="70" Header="Scsi Path" DisplayMemberBinding="{Binding ScsiAddress.PathId}"/>
                    <GridViewColumn Width="70" Header="Scsi Target" DisplayMemberBinding="{Binding ScsiAddress.TargetId}"/>
                    <GridViewColumn Width="70" Header="Scsi Lun" DisplayMemberBinding="{Binding ScsiAddress.Lun}"/>
                </GridView>
            </ListView.View>
            <ListView.ItemContainerStyle>
                <Style TargetType="{x:Type ListViewItem}">
                    <Setter Property="HorizontalContentAlignment" Value="Center"/>
                </Style>
            </ListView.ItemContainerStyle>
        </ListView>
    </DockPanel>
</Window>
